package com.yupi.yuoj.service;

import com.yupi.yuoj.model.entity.CommentLike;
import com.yupi.yuoj.model.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author admin
* @description 针对表【comment_like(评论点赞表)】的数据库操作Service
* @createDate 2025-11-01 21:29:01
*/
public interface CommentLikeService extends IService<CommentLike> {

    /**
     * 评论点赞
     *
     * @param commentId
     * @param loginUser
     * @return
     */
    int doCommentLike(long commentId, User loginUser);

    /**
     * 封装了事务的方法
     *
     * @param userId
     * @param commentId
     * @return
     */
    int doCommentLikeInner(long userId, long commentId);

}
